package problems.solved;

public class Problem9 {
	private static final long TARGET = 1000;

	public static void main(String[] args) {
		for (long a = 1; a <= TARGET/3; a++) {
			for (long b = a+1; b <= TARGET/2; b++) {
				long c = TARGET - a - b;
				if (a*a + b*b == c*c) {
					System.out.println("a=" + a + ", b=" + b + ", c=" + c + ", abc=" + (a*b*c)); // 31875000
				}
			}
		}
	}
}
